//localStorage 使用必须在外层带上try的异常处理
let defaultCity = '武汉'
try {
  if (localStorage.city){
    defaultCity = localStorage.city
  }
} catch (e) {}

export default { //state存放的是全局公用的数据
  // city:localStorage.city || '武汉'
  city:defaultCity
}
